import axios from "@/utils/request.js";


// 获取科室
export function getDeptInfo(data) {
    return axios({
        method: "post",
        url: "api/com/getDeptInfo",
        data
    });
}

// getGroupDeptList
export function getGroupDeptList(data) {
    return axios({
        method: "post",
        url: "api/com/getGroupDeptList",
        data
    });
}

// 获取首页配置
export function indexCfg(data) {
    return axios({
        method: "post",
        url: "api/com/indexCfg",
        data
    });
}

// 获取首页轮播图
export function getBannerList(data) {
    return axios({
        method: "post",
        url: "api/com/getBannerList",
        data
    });
}

// 获取首页公告
export function getNoticeList(data) {
    return axios({
        method: "post",
        url: "api/com/getNoticeList",
        data
    });
}

//获取 openId
export function getWxOpenId(data) {
    return axios({
        method: "post",
        url: "api/com/getWxOpenId",
        data
    });
}

//获取 微信用户信息 和openId
export function getWxUserInfo(data) {
    return axios({
        method: "post",
        url: "api/com/v2/getWxUserInfo",
        data
    });
}

// 获取微信支付配置
export function payCreate(data) {
    return axios({
        method: "post",
        url: "api/pay/create",
        data
    });
}

// 获取微信支付配置
export function jeepayCreate(data) {
    return axios({
        method: "post",
        url: "api/payCopy/create",
        data
    });
}

// 登录相关
// openid登录 loginByOpenId
export function loginByOpenId(data) {
    return axios({
        method: "post",
        url: "api/com/loginByOpenId",
        data
    });
}

// 注册
export function regUser(data) {
    return axios({
        method: "post",
        url: "api/com/regUser",
        data
    });
}

// 验证码登录
export function login(data) {
    return axios({
        method: "post",
        url: "api/com/login",
        data
    });
}

// 密码登录
export function loginPwd(data) {
    return axios({
        method: "post",
        url: "api/com/loginPwd",
        data
    });
}

// 发送验证码
export function sendPhoneCode(data) {
    return axios({
        method: "post",
        url: "api/com/sendPhoneCode",
        data
    });
}

// 更换密码

export function updatePwd(data) {
    return axios({
        method: "post",
        url: "api/user/updatePwd",
        data
    });
}

//更换手机号

export function updatePhone(data) {
    return axios({
        method: "post",
        url: "api/user/updatePhone",
        data
    });
}

// 就诊人列表
export function getPatientList(data) {
    return axios({
        method: "post",
        url: "api/user/getPatientList",
        data
    });
}

//添加就诊人
export function createPat(data) {
    return axios({
        method: "post",
        url: "api/user/createPat",
        data
    });
}

//删除就诊人
export function delPat(data) {
    return axios({
        method: "post",
        url: "api/user/delPat",
        data
    });
}

//设置默认就诊人
export function setDefault(data) {
    return axios({
        method: "post",
        url: "api/user/setDefault",
        data
    });
}

//挂号记录
export function getOrderRegList(data) {
    return axios({
        method: "post",
        url: "api/user/getOrderRegList",
        data
    });
}

//挂号详情
export function getOrderRegDetail(data) {
    return axios({
        method: "post",
        url: "api/order/getOrderRegDetail",
        data
    });
}

//预挂号
export function orderReg(data) {
    return axios({
        method: "post",
        url: "api/order/orderReg",
        data
    });
}

//未支付 取消预约
export function cancelReg(data) {
    return axios({
        method: "post",
        url: "api/order/cancelReg",
        data
    });
}

//已支付 取消挂号
export function orderRefund(data) {
    return axios({
        method: "post",
        url: "api/order/orderRefund",
        data
    });
}

// 排班信息
export function getRegInfo(data) {
    return axios({
        method: "post",
        url: "api/com/getRegInfo",
        data
    });
}

// 排班信息
export function getDoctorRegInfoByDate(data) {
    return axios({
        method: "post",
        url: "api/com/getDoctorRegInfoByDate",
        data
    });
}

// 排班日期
export function getRegDateList(data) {
    return axios({
        method: "post",
        url: "api/com/getRegDateList",
        data
    });
}

// 排班医生
export function getRegDoctorList(data) {
    return axios({
        method: "post",
        url: "api/com/getRegDoctorList",
        data
    });
}

// 医生列表
export function getDoctorInfo(data) {
    return axios({
        method: "post",
        url: "api/com/getDoctorInfo",
        data
    });
}

// 搜索
export function Search(data) {
    return axios({
        method: "post",
        url: "api/com/search",
        data
    });
}

// 智能导诊部位/症状列表
export function guideList(data) {
    return axios({
        method: "post",
        url: "api/ai/guide/list",
        data
    });
}

// 智能导诊提交信息
export function submitAnswer(data) {
    return axios({
        method: "post",
        url: "api/ai/guide/submitAnswer",
        data
    });
}

// 住院记录
export function getInpatientInMainInfo(data) {
    return axios({
        method: "post",
        url: "api/ydkq/getInpatientInMainInfo",
        data
    });
}

// 住院记录详情
export function getInpatientInMainInfoList(data) {
    return axios({
        method: "post",
        url: "api/ydkq/getInpatientInMainInfoList",
        data
    });
}

//  住院日清单
export function getInpatientInMainInfoDayFeeList(data) {
    return axios({
        method: "post",
        url: "api/ydkq/getInpatientInMainInfoDayFeeList",
        data
    });
}

//新闻列表
export function getNewsList(data) {
    return axios({
        method: "post",
        url: "/api/project/newsInfo/getNewsList",
        data
    });
}

//新闻详情
export function getNewsDetail(data) {
    return axios({
        method: "post",
        url: "/api/project/newsInfo/getNewsDetail",
        data
    });
}

//收藏新闻
export function newsCollect(data) {
    return axios({
        method: "post",
        url: "/api/project/newsInfo/collection",
        data
    });
}

//点赞新闻
export function newsLike(data) {
    return axios({
        method: "post",
        url: "/api/project/newsInfo/like",
        data
    });
}

//活动列表
export function getAlumniActivityFormList(data) {
    return axios({
        method: "post",
        url: "api/project/alumniActivityForm/getAlumniActivityFormList",
        data
    });
}

//活动详情
export function getAlumniActivityFormDetail(data) {
    return axios({
        method: "post",
        url: "api/project/alumniActivityForm/getAlumniActivityFormDetail",
        data
    });
}

//活动点赞
export function activityHandleLike(data) {
    return axios({
        method: "post",
        url: "api/project/alumniActivityForm/like",
        data
    });
}

//活动收藏
export function activityHandleCollection(data) {
    return axios({
        method: "post",
        url: "api/project/alumniActivityForm/collect",
        data
    });
}

//活动转发
export function activityHandleForward(data) {
    return axios({
        method: "post",
        url: "api/project/alumniActivityForm/forward",
        data
    });
}

//活动报名
export function activityHandleSignup(data) {
    return axios({
        method: "post",
        url: "api/project/alumniActivityForm/signUp",
        data
    });
}

//活动取消报名
export function alumniActivityFormCancelSignUp(data) {
    return axios({
        method: "post",
        url: "api/project/alumniActivityForm/cancelSignUp",
        data
    });
}

//活动投票
export function activityHandleVote(data) {
    return axios({
        method: "post",
        url: "api/project/alumniActivityForm/vote",
        data
    });
}

//活动列表
export function getCmsArticleList(data) {
    return axios({
        method: "post",
        url: "api/project/alumniActivityForm/getAlumniActivityFormList",
        data
    });
}

//查询我参与的活动列表
export function getMineActivity(data) {
    return axios({
        method: "post",
        url: "api/project/alumniActivityForm/getMyJoinActivity",
        data
    });
}

//发起活动
export function createActivity(data) {
    return axios({
        method: "post",
        url: "api/project/alumniActivityForm/createActivity",
        data
    });
}

//查询我发起的活动
export function getMyActivity(data) {
    return axios({
        method: "post",
        url: "api/project/alumniActivityForm/getMyActivity",
        data
    });
}

//查询我发起的活动的报名人列表
export function getMyActivitySignUp(data) {
    return axios({
        method: "post",
        url: "api/project/alumniActivityForm/getMyAlumniActivityFormSignUp",
        data
    });
}

//修改活动信息（审核不通过前提下）
export function updateActivity(data) {
    return axios({
        method: "post",
        url: "/api/project/alumniActivityForm/updateById",
        data
    });
}

//合作互助列表
export function alumniMutualList(data) {
    return axios({
        method: "post",
        url: "api/project/alumniForm/listByPage",
        data
    });
}

//合作互助数据明细
export function alumniMutualDetail(data) {
    return axios({
        method: "post",
        url: "api/project/alumniForm/getAlumniFormDetail",
        data
    });
}

//合作互助点赞
export function alumniMutualLike(data) {
    return axios({
        method: "post",
        url: "api/project/alumniForm/like",
        data
    });
}

//合作互助收藏
export function alumniFormCollect(data) {
    return axios({
        method: "post",
        url: "api/project/alumniForm/collect",
        data
    });
}

//合作互助转发
export function alumniFormForward(data) {
    return axios({
        method: "post",
        url: "api/project/alumniForm/forward",
        data
    });
}

//合作互助报名
export function alumniFormSignUp(data) {
    return axios({
        method: "post",
        url: "api/project/alumniForm/signUp",
        data
    });
}

//合作互助取消报名
export function alumniFormCancelSignUp(data) {
    return axios({
        method: "post",
        url: "api/project/alumniForm/cancelSignUp",
        data
    });
}

//发起互助
export function createMutual(data) {
    return axios({
        method: "post",
        url: "api/project/alumniForm/create",
        data
    });
}

//查询我发起的互助列表
export function getMyMutual(data) {
    return axios({
        method: "post",
        url: "api/project/alumniForm/getMyInteractiony",
        data
    });
}

//查询我参与的互助列表
export function getMineMutual(data) {
    return axios({
        method: "post",
        url: "api/project/alumniForm/getMyJoinInteractiony",
        data
    });
}

//查询我发起的互助的报名人列表
export function getMyAlumniFormSignUp(data) {
    return axios({
        method: "post",
        url: "/api/project/alumniForm/getMyAlumniFormSignUp",
        data
    });
}

//修改互助信息（审核不通过前提下）
export function updateMutual(data) {
    return axios({
        method: "post",
        url: "/api/project/alumniForm/updateById",
        data
    });
}

//查询消息
export function getMessageList(data) {
    return axios({
        method: "post",
        url: "api/project/messageNotification/list",
        data
    });
}

//查看消息详情
export function getMessageDetail(data) {
    return axios({
        method: "post",
        url: "api/project/messageNotification/getById",
        data
    });
}

//查询未读的消息条数
export function getUnreadMessageCount(data) {
    return axios({
        method: "post",
        url: "/api/project/messageNotification/getUnreadCount",
        data
    });
}

// 健康资讯详情
export function getCmsArticleDetail(data) {
    return axios({
        method: "post",
        url: "api/com/getCmsArticleDetail",
        data
    });
}

// 检查检验
export function getCheckOutReportList(data) {
    return axios({
        method: "post",
        url: "api/report/getCheckOutReportList",
        data
    });
}

// 检验明细
export function getNormalReportInfo(data) {
    return axios({
        method: "post",
        url: "api/report/getNormalReportInfo",
        data
    });
}

// 检查明细
export function getCheckReportInfo(data) {
    return axios({
        method: "post",
        url: "api/report/getCheckReportInfo",
        data
    });
}

// 缴费记录
export function getPayListNew(data) {
    return axios({
        method: "post",
        url: "api/ydkq/getPayListNew",
        data
    });
}

// 待缴费金额统计接口
export function getOutpatientUnPayAmount(data) {
    return axios({
        method: "post",
        url: "api/ydkq/getOutpatientUnPayAmount",
        data
    });
}

// 缴费明细
export function getPayDetail(data) {
    return axios({
        method: "post",
        url: "api/ydkq/getPayDetail",
        data
    });
}

// 排队列表
export function getOutpatientSeeNo(data) {
    return axios({
        method: "post",
        url: "api/ydkq/getOutpatientSeeNo",
        data
    });
}

// 提交反馈
export function addFeedback(data) {
    return axios({
        method: "post",
        url: "api/user/addFeedback",
        data
    });
}

// 医院介绍和医院导航
export function hospitalConfig(data) {
    return axios({
        method: "post",
        url: "api/com/hospitalConfig",
        data
    });
}

// / 科室详情
export function getDeptInfo2(data) {
    return axios({
        method: "post",
        url: "api/com/getDeptInfo2",
        data
    });
}

// 微信Sign
export function getWxSign(data) {
    return axios({
        method: "post",
        url: "api/com/getWxSign",
        data
    });
}

// 就诊记录列表
export function getOutpatientClinicCode(data) {
    return axios({
        method: "post",
        url: "api/ydkq/getOutpatientClinicCode",
        data
    });
}

// 就诊记录详情
export function getOutpatientOutMainInfoList(data) {
    return axios({
        method: "post",
        url: "api/ydkq/getOutpatientOutMainInfoList",
        data
    });
}

// 预交金明细
export function getInpatientInprePay(data) {
    return axios({
        method: "post",
        url: "api/ydkq/getInpatientInprePay",
        data
    });
}

// 病历复印相关接口
// 申请
export function recordCopy(data) {
    return axios({
        method: "post",
        url: "api/medical/record/copy",
        data
    });
}

// 取消申请
export function recordCopyCancel(data) {
    return axios({
        method: "post",
        url: "api/medical/record/copy/cancel",
        data
    });
}

// 列表
export function recordCopyList(data) {
    return axios({
        method: "post",
        url: "api/medical/record/copy/list",
        data
    });
}

//  列表详情
export function recordCopydetail(data) {
    return axios({
        method: "post",
        url: "api/medical/record/copy/detail",
        data
    });
}


// 七牛上传相关接口
export function getQiNiuToken(data) {
    return axios({
        method: "post",
        url: "api/com/getQiNiuToken",
        data
    });
}

// 诊后注意事项接口

export function getAfterPointsList(data) {
    return axios({
        method: "post",
        url: "api/com/getAfterPointsList",
        data
    });
}

export function getAfterPointsDetail(data) {
    return axios({
        method: "post",
        url: "api/com/getAfterPointsDetail",
        data
    });
}

// 挂号/缴费-订单状态查询
export function queryOrderStatus(data) {
    return axios({
        method: "post",
        url: "api/pay/queryOrderStatus",
        data
    });
}

// 获取当天病人就诊列表
export function getOutpatientBySfzToday(data) {
    return axios({
        method: "post",
        url: "api/com/getOutpatientBySfzToday",
        data
    });
}

// 签到
export function updateIsRegister(data) {
    return axios({
        method: "post",
        url: "api/com/updateIsRegister",
        data
    });
}

//校友列表
export function getAlumniList(data) {
    return axios({
        method: "post",
        url: "api/project/alumniInfo/getAlumniList",
        data
    });
}

//查看校友详情
export function getAlumniDetail(data) {
    return axios({
        method: "post",
        url: "api/project/alumniInfo/getById",
        data
    });
}

// 获取校验登录用户信息
export function getLoginUserInfo(data) {
    return axios({
        method: "post",
        url: "api/com/user",
        data
    });
}

//审核员获取当前未审核记录条数
export function getUnAuditCount(data) {
    return axios({
        method: "post",
        url: "api/project/messageNotification/getCheckCount",
        data
    });
}

//审核员获取当前未审核记录列表
export function getCheckList(data) {
    return axios({
        method: "post",
        url: "api/project/messageNotification/getCheckList",
        data
    });
}

//已读审批通知
export function readCheckList(data) {
    return axios({
        method: "post",
        url: "api/project/messageNotification/updateCheckStatus",
        data
    });
}

//审批活动
export function checkActivity(data) {
    return axios({
        method: "post",
        url: "api/project/alumniActivityForm/applyActivity",
        data
    });
}

//审批合作
export function checkMutual(data) {
    return axios({
        method: "post",
        url: "api/project/alumniForm/applyForm",
        data
    });
}

//审批校友注册
export function checkAlumni(data) {
    return axios({
        method: "post",
        url: "/api/project/alumniInfo/applyReg",
        data
    });
}

//分级获取字典值
export function getDictValue(data) {
    return axios({
        method: "post",
        url: "api/project/sysDict/getDictValue",
        data
    });
}

//使用手机号查询用户信息
export function getUserInfoByPhone(data) {
    return axios({
        method: "post",
        url: "api/com/getUserInfoByPhone",
        data
    });
}

// 发票列表
export function getElecInvoiceInfo(data) {
    return axios({
        method: "post",
        url: "api/ydkq/getElecInvoiceInfo",
        data
    });
}

//判断当天是否有挂号记录
export function todayIsReg(data) {
    return axios({
        method: "post",
        url: "api/user/todayIsReg",
        data
    });
}

export function getFeaturedItemList() {
    return axios({
        method: "post",
        url: "api/com/getFeaturedItemList"
    });
}

export function getFeaturedItemDetail(data) {
    return axios({
        method: "post",
        url: "api/com/getFeaturedItemDetail",
        data
    });
}

// 互助转发
export function mutualHandleForward(data) {
    return axios({
        method: "post",
        url: "api/project/alumniForm/forward",
        data
    });
}

//修改个人信息
export function updateUserInfo(data) {
    return axios({
        method: "post",
        url: "api/project/alumniInfo/updateById",
        data
    });
}

//给校友发私信
export function sendMessage(data) {
    return axios({
        method: "post",
        url: "api/project/messageNotification/sendPrivateMessage",
        data
    });
}

//回复私信
export function replyPrivateMessage(data) {
    return axios({
        method: "post",
        url: "api/project/messageNotification/replyMessage",
        data
    });
}

//更新头像
export function updateUserAvatar(data) {
    return axios({
        method: "post",
        url: "api/project/alumniInfo/updateAvatar",
        data
    });
}
